#ifndef MIKE_UTILS_H
#define MIKE_UTILS_H
#define name_of(x) #x
#include <windows.h>
#include <tchar.h>
#include <stdio.h>

namespace MikeUtils
{
	
	static void ASSERT(bool check, char * text, char * file, unsigned long line)
	{
#		ifndef DISABLE_ASSERTS
		if(!check)
		{
			char finalText[250];
			ZeroMemory(finalText, sizeof(char) * 250);
			
			sprintf(finalText, "%#s\n: %s: %d", text, file, line); 


			MessageBox(0, _T( finalText ), _T("Assertion Failed!"), MB_OK );
		}
#		endif
	}


};

#endif